import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;

public class log4jTest01 {
    @Test
    public void test01() {
        Logger logger = LogManager.getLogger("fileLogger");
        logger.trace("trace级别");
        logger.debug("debug级别");
        logger.info("info级别");
        logger.warn("warn级别");
        logger.error("error级别");
        logger.fatal("fatal级别");
    }
}
